#include <etcd/Client.hpp>
#include <etcd/KeepAlive.hpp>
#include <etcd/Response.hpp>
#include "../common/Etcd.hpp"

int main()
{
    std::string host = "http://127.0.0.1:2379";
    std::string key = "/service/user";
    std::string value = "112.23.23.120:9090";

    XKL::initLogger("stdout", "", 1);
    XKL::RpcRegister reg(host);
    reg.onRegister("/service/user", "1.1.1.1");
    reg.onRegister("/service/friend", "2.1.1.1");
    getchar();
    reg.cancel();
    return 0;
}